<?php


namespace app\common\model\ads;


use think\Model;

class AdsLocation extends Model
{
    protected  $name="ads_location";

    public static function getIdsBySign($sign){
        $arr=self::where("ad_location_sign",$sign)->field("id")->select()->toArray();
        $ids='';
        foreach ($arr as $k =>$v){
            $ids=$v["id"].','.$ids;
        }
        if($ids!=='')
        $ids=substr($ids,0,-2);
        return $ids;
    }
}